From: Ian Jackson Date: Thu, 9 Jul 2015 17:24:59 +0000 (+0100) Subject: libxl: event tests: Improve Makefile doc comment X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2786 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b0f65210b5067d0a063d2bc87ac8a166bddac278;p=xen.git libxl: event tests: Improve Makefile doc comment Including the explanation of how to run these tests. Signed-off-by: Ian Jackson Acked-by: Wei Liu --- diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile index 0150ec7fdd..05d97286d6 100644 --- a/tools/libxl/Makefile +++ b/tools/libxl/Makefile @@ -116,7 +116,13 @@ LIBXL_TESTS += timedereg # "outside libxl" file is compiled exactly like a piece of application # code. They must share information via explicit libxl entrypoints. # Unlike proper parts of libxl, it is permissible for libxl_test_FOO.c -# to use private global variables for its state. +# to use private global variables for its state. Note that all the +# "inside" parts are compiled into a single test library, so their +# symbol names must be unique. +# +# To run these tests, either use LD_PRELOAD to get libxenlight_test.so +# loaded, or rename it to libxenlight.so so it is the target of the +# appropriate symlinks. LIBXL_TEST_OBJS += $(foreach t, $(LIBXL_TESTS),libxl_test_$t.o) TEST_PROG_OBJS += $(foreach t, $(LIBXL_TESTS),test_$t.o) test_common.o